<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('inspection_device_types', function (Blueprint $table) {
            $table->comment('设备类型');
            $table->bigIncrements('id')->comment('ID');
            $table->string('name', 64)->nullable(false)->comment('类型名称（游乐设备、广播设备、监控设备、其他设备）');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('inspection_device_types');
    }
};